3 subject="""comment 2"""
4 date="2023-03-23T19:35:33Z"
6 I was able to reproduce something that looks similar to this without
7 needing to interrupt any command:
9 joey@darkstar:~/tmp/bench>git clone a b
12 joey@darkstar:~/tmp/bench>cd b
13 joey@darkstar:~/tmp/bench/b>git config annex.adjustedbranchrefresh 1
14 joey@darkstar:~/tmp/bench/b>git annex adjust --unlock-present
16 Switched to branch 'adjusted/master(unlockpresent)'
18 joey@darkstar:~/tmp/bench/b#master(unlockpresent)>ls
20 joey@darkstar:~/tmp/bench/b#master(unlockpresent)>git-annex get
21 get foo (from origin...)
23 (recording state in git...)
24 joey@darkstar:~/tmp/bench/b#master(unlockpresent)>ls
26 joey@darkstar:~/tmp/bench/b#master(unlockpresent)>git-annex drop
28 error: Your local changes to the following files would be overwritten by checkout:
30 Please commit your changes or stash them before you switch branches.
33 Updating adjusted branch failed.
34 (recording state in git...)
36 And it was left in a similar detached head status:
38 HEAD detached at 2aab85d
39 nothing to commit, working tree clean
41 This seems be be a bug with the implementation of annex.adjustedbranchrefresh